package com.situ.day5;

public class Teacher extends Person {
	private Double salary;
	
	public Teacher() {
		super();
	}

	public Teacher(Integer id, String name, Integer age, Double salary) {
		super(id, name, age);
		this.salary = salary;
	}

	public void teach() {
		System.out.println("Teacher.teach()");
	}

	public Double getSalary() {
		return salary;
	}

	public void setSalary(Double salary) {
		this.salary = salary;
	}

}
